
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>Countdown that doesn't sucks</title>
    <script src="/static/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/static/js/jquery.countdown.js" type="text/javascript" charset="utf-8"></script>
  </head>
<body>
  <br />
  <br />
  <br />
  <div id="counter"></div>
    <script type="text/javascript">
    var xhr;
    if(document.XMLHttpRequest)
    {
        xhr = new XMLHttpRequest();
    }
    else
    {
        alert("cannot use ajax");
    }
    xhr.open("GET", "/", true);
    xhr.send(null);
    xhr.onreadystatechange = parseResponse;

    function parseResponse()
    {
        var ready = xhr.readyState;
        if (ready == 4)
        {
            alert(xhr.responseText);
        }
    }
    </script>

</body>
</html>
